package com.uwaterloo.interviewme.am.udm;

import java.util.Collection;

import com.uwaterloo.interviewme.model.Interview;

/**
 * The Interface UserDataManager.
 * 
 * Provides access to the device cache
 */
public interface UserDataManager {
	
	/**
	 * Save interview.
	 *
	 * @param interview the interview
	 * @return true, if successful
	 */
	boolean saveInterview(Interview interview);

	/**
	 * Update interview.
	 *
	 * @param interview the interview
	 * @return true, if successful
	 */
	boolean updateInterview(Interview interview);
	
	/**
	 * Retrive interview.
	 *
	 * @param interviewID the interview id
	 * @return the interview
	 */
	Interview retriveInterview(String interviewID);

	/**
	 * Retrive all interview.
	 *
	 * @return the collection
	 */
	Collection<Interview> retriveAllInterview();

	/**
	 * Delete interview.
	 *
	 * @param interviewID the interview id
	 * @return true, if successful
	 */
	boolean deleteInterview(String interviewID);
}
